Skip to content

Conversation

@ArturU043
Copy link
Contributor

Follow up on PR #588 and solution to #649

This workflow updates the pyproject.toml version to the new Github release tag and pushes it to the repo.
Also, it builds and publishes the PyPI distribution associated with the release version.

To bypass the push protection on master, I added:

  • Deploy key: Github Actions - protection bypass with write permits
    • Public key built with ssh-keygen -t ed25519 -C "deploy-key-to-front-end" -N ""
  • Secret: DEPLOY_KEY
    • Contains the private key
  • Added "Deploy Keys" to the Bypass list of the ProtectMaster ruleset

The workflow imports the ssh key from the secrets.DEPLOY_KEY and was tested on dev branches

The rule bypass was not tested yet on master

@ArturU043 ArturU043 self-assigned this Sep 5, 2025
@codecov
Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.19%. Comparing base (1413cd7) to head (2d819d6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #652   +/-   ##
=======================================
  Coverage   97.19%   97.19%           
=======================================
  Files          29       29           
  Lines        1959     1959           
=======================================
  Hits         1904     1904           
  Misses         55       55           
Flag Coverage Δ
unittests 97.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@gordonwatts gordonwatts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good enough to me to try, which is the only way to see how this will actually work!

@ArturU043 ArturU043 merged commit 2b61ddf into master Sep 24, 2025
37 checks passed
@ArturU043 ArturU043 deleted the feat/auto-bump-deploy-key branch September 24, 2025 15:17
@ArturU043
Copy link
Contributor Author

ArturU043 commented Sep 24, 2025

The new action worked fine for publishing a dummy release to pypi and changing the name in pyproject.toml

Succesfull commit to master

CI tests failed because the dummy release tag is below the current dependencies.

@ArturU043
Copy link
Contributor Author

@gordonwatts can you confirm the new PR to set the version back to 3.2.2 ?

gordonwatts added a commit that referenced this pull request Oct 7, 2025
* List supported code generators in NameError

* re-implementing Push commit and commit version-bump

* Update version to 0.0.1b

* Adding deploy keys instead of Github tokens

* Adding workflow and reseting version to master

* Update version to 3.2.2b

*  version reset to 3.2.2 after release test

* Handle None query input (#642)

* Add dataset list name filtering

* Merge pull request #652 from ssl-hep/feat/auto-bump-deploy-key

Feat/auto bump deploy key

* Update version to 3.2.2test

* Update version to 0.0.1a

* Update pyproject.toml back to 3.2.2 after GHA test

* Use TB, MB, and GB for units as appropriate (#655)

Minor UI update to make the unites look a little better when printing out dataset sizes.

* Merge pull request #660 from ssl-hep/fix/set-version-3.2.2

Update pyproject.toml back to 3.2.2 after GHA test

* Allow deleting multiple datasets (#656)

* Add help text for codegen and datasets CLI (#639)

Add missing help text for various cli commands.

* feat: show human readable cache sizes

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0)
- [github.com/psf/black: 25.1.0 → 25.9.0](psf/black@25.1.0...25.9.0)

* Bump pypa/gh-action-pypi-publish in /.github/workflows

Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.12.4 to 1.13.0.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](pypa/gh-action-pypi-publish@v1.12.4...v1.13.0)

---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
  dependency-version: 1.13.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* add display_results option to deliver and --hide-results flag to cli (#654)

* add display_results option to deliver and --hide-results flag to cli

* Bump the actions group across 1 directory with 3 updates

Bumps the actions group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/setup-python](https://github.com/actions/setup-python) and [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v5)

Updates `actions/setup-python` from 5 to 6
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v5...v6)

Updates `actions/upload-pages-artifact` from 3 to 4
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](actions/upload-pages-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/upload-pages-artifact
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <[email protected]>

* change coverage options to match github build steps (#622)

* change coverage options to match github build steps

* remove erroneous pyproject attribute

* remove branch attribute from pyproject

* List supported code generators in NameError

* Merge branch 'codex/refactor-servicex-client-and-query-handling' of https://github.com/ssl-hep/ServiceX_frontend into codex/refactor-servicex-client-and-query-handling
ponyisi pushed a commit that referenced this pull request Oct 18, 2025
* List supported code generators in NameError

* re-implementing Push commit and commit version-bump

* Update version to 0.0.1b

* Adding deploy keys instead of Github tokens

* Adding workflow and reseting version to master

* Update version to 3.2.2b

*  version reset to 3.2.2 after release test

* Handle None query input (#642)

* Add dataset list name filtering

* Merge pull request #652 from ssl-hep/feat/auto-bump-deploy-key

Feat/auto bump deploy key

* Update version to 3.2.2test

* Update version to 0.0.1a

* Update pyproject.toml back to 3.2.2 after GHA test

* Use TB, MB, and GB for units as appropriate (#655)

Minor UI update to make the unites look a little better when printing out dataset sizes.

* Merge pull request #660 from ssl-hep/fix/set-version-3.2.2

Update pyproject.toml back to 3.2.2 after GHA test

* Allow deleting multiple datasets (#656)

* Add help text for codegen and datasets CLI (#639)

Add missing help text for various cli commands.

* feat: show human readable cache sizes

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0)
- [github.com/psf/black: 25.1.0 → 25.9.0](psf/black@25.1.0...25.9.0)

* Bump pypa/gh-action-pypi-publish in /.github/workflows

Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.12.4 to 1.13.0.
- [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases)
- [Commits](pypa/gh-action-pypi-publish@v1.12.4...v1.13.0)

---
updated-dependencies:
- dependency-name: pypa/gh-action-pypi-publish
  dependency-version: 1.13.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* add display_results option to deliver and --hide-results flag to cli (#654)

* add display_results option to deliver and --hide-results flag to cli

* Bump the actions group across 1 directory with 3 updates

Bumps the actions group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/setup-python](https://github.com/actions/setup-python) and [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4...v5)

Updates `actions/setup-python` from 5 to 6
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v5...v6)

Updates `actions/upload-pages-artifact` from 3 to 4
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](actions/upload-pages-artifact@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/upload-pages-artifact
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <[email protected]>

* change coverage options to match github build steps (#622)

* change coverage options to match github build steps

* remove erroneous pyproject attribute

* remove branch attribute from pyproject

* List supported code generators in NameError

* Merge branch 'codex/refactor-servicex-client-and-query-handling' of https://github.com/ssl-hep/ServiceX_frontend into codex/refactor-servicex-client-and-query-handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants